package city.spring.modules.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 实体类：报损出库
 *
 * @author 谢金婷
 * @date 2021-01-20 10:51:40
 */
@Data
@TableName("material_breakage_delivery")
public class MaterialBreakageDeliveryEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 报损人
     */
    private String breakageUser;
    @TableField(exist = false)
    private String name;

    /**
     * 报损部门
     */
    private String departmentId;
    @TableField(exist = false)
    private String departmentName;

    /**
     * 报损时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date breakageDate;

    /**
     * 登记人
     */
    private String reporter;
    @TableField(exist = false)
    private String reporterName;

    /**
     * 状态：待审核、通过、不通过
     */
    private String status;

    /**
     * 是否确认：是、否
     */
    private String confirm;


    /**
     * 审核人
     */
    @TableField(exist = false)
    private String reviewerName;

    /**
     * 审核意见
     */
    @TableField(exist = false)
    private String suggestion;

    /**
     * 审核日期
     */
    @TableField(exist = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date reviewdate;
}